package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domain.db.UserInfo;
import org.apache.ibatis.annotations.Update;

//用户详情
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    //冻结
    @Update("update tb_user_info set user_status = '2' where id = #{id}")
    void updateUser(Long id);
    @Update("update tb_user_info set user_status = '1' where id = #{id}")
    void updateUnUser(Long id);


}